import java.io.*;
import java.util.*;

/**
 * Represents an entry in the array.
 */
public class Record
{	
    /**
     * Returns the number of basic terms.
     */
    public int n;
	
    /**
     * Returns the product of all selectivities.
     */
    public double p;
    
    /**
     * Returns a value indicating whether the no-branch
     * optimization was used.
     */
    public boolean b;
	
    /**
     * Returns the current best cost.
     */
    public double c;
	
    /**
     * Returns the fixed cost.
     */
    public double fCost;
	
    /**
     * Returns the index of the left child.
     */
    public int left;
	
    /**
     * Returns the index of right child.
     */
    public int right;

    /**
     * Returns this instance in a readable string representation.
     */
    public String toString() {
        StringBuilder result = new StringBuilder();
        result.append("{");
        result.append("n: " + this.n + ", ");
        result.append("p: " + this.p + ", ");
        result.append("b: " + this.b + ", ");
        result.append("c: " + this.c + ", ");
        result.append("left: " + this.left + ", ");
        result.append("right: " + this.right);
        result.append("}");
        return result.toString();
    }
}